#!/usr/bin/env python
# -*- coding:utf-8 -*-
#处理简单逻辑
#自动return

def func(arg):
    return arg - 1
func(1)
result1 = func(199)
print "def 形式：",result1

#lambda
func2=lambda a : a+1
result2 = func2(199)
print "lambda : ",result2

func3=lambda a,b : a+b
result3=func3(100,100)
print "多个参数",result3